from common.utils import chromeDriver
from module.homeModule import Home
from module.loginModule import Login
from module.myProjectModule import MyProject
from module.myQuestionBankModule import MyQuestion
from module.personalSettingsModule import PersonalSetting
from module.registrationModule import Registration
from module.templateSquareModule import TemplateSquare

if __name__ == '__main__':
    #注册测试
    Registration().LoginHasFailed()
    Registration().RegisteredSuccessfully()
    #登录测试
    Login().LoginSucceeded()
    #首页页面测试
    Home().HomeCheckElement()
    #我的项目页面测试
    MyProject().MyProjectCheckElement()
    MyProject().ProjectFuncTest()
    #我的题库页面测试
    MyQuestion().MyQuestionCheckElement()
    MyQuestion().MyQuestionFuncTest()
    #模板广场页面测试
    TemplateSquare().TemplateCheckElement()
    TemplateSquare().TemplateFuncTest()
    #个人设置页面测试
    PersonalSetting().PersonalSettingsCheckElement()
    PersonalSetting().UpdatedInformationSuccessfully()
    PersonalSetting().FailedToUpdateInformation()

    chromeDriver.driver.quit()